package com.lotter.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lotter.common.enumobject.IswinningEnum;
import com.lotter.common.exception.LotterCusException;
import com.lotter.dao.CashRecordMapper;
import com.lotter.model.caipiao.CashRecord;


@Service
public class CashRecordService {
	
	@Autowired
	private CashRecordMapper cashRecordMapper ;
	
	
	public void scopeDetail(Map<String,Object> result,String phase) 
			throws LotterCusException{
		List<CashRecord> list = cashRecordMapper.findDetailsByPhase(phase);
		result.put("data", list);
		result.put("iswinningenum",IswinningEnum.toJSONString());
	}

}
